package cn.tecnova.bean

/**
  * description:封装DiyRelationArticle的类
  **/
case class DiyRelationArticle(
                          val id: String,
                          val user_id: String,
                          val group_id: String,
                          val group_name: String,
                          val group_line_id: String,
                          val article_id: String,
                          val site_name: String,
                          val media_cls: String,
                          val article_title: String,
                          val article_author: String,
                          val site_url: String,
                          val article_area: String,
                          val article_pubdate: String,
                          val hit_words: String,
                          val positive_word_cloud: String,
                          val negative_word_cloud: String,
                          val hot_words: String,
                          val sentiment_analysis: String,
                          val summary: String,
                          val nlp_sort: String,
                          val relation_words: String,
                          val risk_score: String,
                          val risk_reason: String,
                          val weight_sort: String,
                          val update_time: String,
                          val article_content:String,
                          val topic_type:String
) extends Product with Serializable {



  override def productElement(n: Int) = n match {
    case 0 => id
    case 1 => user_id
    case 2 => group_id
    case 3 => group_name
    case 4 => group_line_id
    case 5 => article_id
    case 6 => site_name
    case 7 => media_cls
    case 8 => article_title
    case 9 => article_author
    case 10 => site_url
    case 11 => article_area
    case 12 => article_pubdate
    case 13 => hit_words
    case 14 => positive_word_cloud
    case 15 => negative_word_cloud
    case 16 => hot_words
    case 17 => sentiment_analysis
    case 18 => summary
    case 19 => nlp_sort
    case 20 => relation_words
    case 21 => risk_score
    case 22 => risk_reason
    case 23 => weight_sort
    case 24 => update_time
    case 25 => article_content
    case 26 => topic_type
  }

  override def productArity = 27

  override def canEqual(that: Any) = that.isInstanceOf[DiyRelationArticle]

}
object DiyRelationArticle {

  def apply(arr:Array[String]):DiyRelationArticle= DiyRelationArticle(
    arr(0),
    arr(1),
    arr(2),
    arr(3),
    arr(4),
    arr(5),
    arr(6),
    arr(7),
    arr(8),
    arr(9),
    arr(10),
    arr(11),
    arr(12),
    arr(13),
    arr(14),
    arr(15),
    arr(16),
    arr(17),
    arr(18),
    arr(19),
    arr(20),
    arr(21),
    arr(22),
    arr(23),
    arr(24),
    arr(25),
    arr(26)
  )

}
